package com.ccl.iot.dialogs;


import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ProgressBar;

import com.ccl.iot.R;

public class StudyIrDialog extends CustomDialog {

    private View mBack;
    private ProgressBar mPbProgress;

    public StudyIrDialog(Context context) {
        super(context, R.style.DialogTheme);
        initListener();
    }

    @Override
    public View getView() {
        View view = View.inflate(getContext(), R.layout.dialog_study_ir_view, null);
        mBack = view.findViewById(R.id.back);
        mPbProgress = (ProgressBar) view.findViewById(R.id.pb_study_progress);
        return view;
    }

    private void initListener() {
        mBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                cancel();
            }
        });
    }

    public void setProgress(int progress){
        mPbProgress.setProgress(progress);
    }

}
